import { connectRouter, RouterState } from "connected-react-router";
import { combineReducers } from "redux";
import { History } from "history";
import authReducer, { AuthState } from "./auth.reducer";
// import testReducer from "./test.reducer";

export interface AppState {
  router: RouterState,
  auth: AuthState
}

const createRootReducer = (history: History) =>
 combineReducers({
  // test: testReducer, // 测试store是否配置成功
  router: connectRouter(history),
  auth: authReducer
})

export default createRootReducer